package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.CustomerListCreateValidate;
import com.mdd.admin.validate.CustomerListUpdateValidate;
import com.mdd.admin.validate.CustomerListSearchValidate;
import com.mdd.admin.vo.CustomerColListVo;
import com.mdd.admin.vo.CustomerListDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 客户列服务接口类
 * @author LikeAdmin
 */
public interface ICustomerListService {

    /**
     * 客户列列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<CustomerListListedVo>
     */
    PageResult<CustomerColListVo> list(PageValidate pageValidate, CustomerListSearchValidate searchValidate);

    /**
     * 客户列详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return CustomerListDetailVo
     */
    CustomerListDetailVo detail(Integer id);

    /**
     * 客户列新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(CustomerListCreateValidate createValidate);

    /**
     * 客户列编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(CustomerListUpdateValidate updateValidate);

    /**
     * 客户列删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
